﻿<%@ Register TagPrefix="DT" Namespace="Lx.Web.Common.UI" Assembly="Web.Common" %>
<%@ Control Language="c#" AutoEventWireup="false" Inherits="Web.Control.Member.My.Profile.Personal" %>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<!--content strat-->
				<div id="MessagesBox" class="DisplayNone" style="display:none">
                    <div class="MessagePanel4">
                        <img id="MessageImg" src="/images/ico_info.gif" style="border-width: 0px;" alt=""/>
                        <div id="MessageText"></div>
                    </div>
                </div>
				<div class="title">
					<h1><%=GetText("M0003")%></h1>
				</div>
				<div>
					<ul class="sort_sel">
						<li class="selATags first"><span><a href="/my/profile/personal.htm"><%=GetText("ST047")%></a></span></li>
						<li class="unselATags"><span><a href="/my/profile/language.htm"><%=GetText("ST000")%></a></span></li>
						<%if (((Lx.Web.Common.UI.TDTPageBase)Page).IsTeacher){%><li class="unselATags"><span><a href="/my/profile/teaching.htm"><%=GetText("ST133")%></a></span></li><%} %>
						<li class="unselATags"><span><a href="/my/profile/mycontact.htm"><%=GetText("ST030")%></a></span></li>
						<li class="unselATags"><span><a href="/my/profile/myphoto.htm"><%=GetText("ST195")%></a></span></li>
					</ul>
					<div class="clear"></div>
				</div>
				<div class="Center9001n">
					<div class="Center9001Common">
						<div class="Center9001Content">
							<!--Stand content start-->
							<div class="setting_area">
								<h3><%=GetText("ST048")%></h3>
								<div class="margin20D" >
									<ul class="formlist">
										<li>
											<div class="item"><%=GetText("ST049")%></div>
											<div class="op"><label><input id="Nickname" type="text" value="<%=HttpUtility.HtmlAttributeEncode(UserInfo.Nickname) %>" class="text allwid" /><span id="SNickname" style="color: Red; display: none;" class="red10"><br /><%=GetText("UR042")%></span></label></div><div class="clear"></div>
										</li>
										<li>
											<div class="item"><%=GetText("C0002")%></div>
											<div class="op"><div class="opl"><select id="Nationality" class="select allhalf"><option value="" selected="selected"><%=GetText("C0061")%>...</option><%=GetCountrySelect(UserInfo.Nationality) %></select><br /><%=GetText("C0014")%></div><div class="opr"><input id="Hometown" type="text"class="text allhalf"  value="<%=UserInfo.Hometown %>"/><br /><%=GetText("C0015")%> <span class="grey12">(<%=GetText("C0043")%>)</span></div><div class="clear"></div><span id="SNationality" style="color: Red; display: none;" class="red12"><%=GetText("UR027")%></span></div><div class="clear"></div>
										</li>
										<li>
											<div class="item"><%=GetText("C0008")%></div>
											<div class="op"><div class="opl"><select id="Country" class="select allhalf"><option value="" selected="selected"><%=GetText("C0061")%>...</option><%=GetCountrySelect(UserInfo.Country) %></select><br /><%=GetText("C0014")%></div><div class="opr"><input id="City" type="text"class="text allhalf"  value="<%=UserInfo.City %>"/><br /><%=GetText("C0015")%> <span class="grey12">(<%=GetText("C0043")%>)</span></div><div class="clear"></div><span id="SCountry" style="color: Red; display: none;" class="red12"><%=GetText("ST199")%></span></div><div class="clear"></div>
										</li>
										<li>
											<div class="item"><%=GetText("C0011")%></div>
											<div class="op">
												<table width="300" border="0" cellspacing="0" cellpadding="0">
												<tr>
												    <td><input id="Radio4" type="radio" name="sex" <%=(UserInfo.Gender=="1"?"checked=\"checked\"":"") %> /><label for="Radio4"><%=GetText("C0012")%></label></td>
													<td><input id="Radio5" type="radio" name="sex" <%=(UserInfo.Gender=="0"?"checked=\"checked\"":"") %> /><label for="Radio5"><%=GetText("C0013")%></label></td>
												</tr></table></div><div class="clear"></div>
										</li>
										<li>
											<div class="item"><%=GetText("C0098")%></div>
											<div class="op"><DT:DATEPANEL id="BOD" runat="server" Width="250" MaxYear="1995" MinYear="1930" Text="0-0-0" TextYMD="Year,Month,Day"></DT:DATEPANEL><span id="SBOD" style="color: Red; display: none;" class="red10"><br /><%=GetText("UR028")%></span><br><input id="ShowBodID" type="checkbox" <%=UserInfo.IsShowBod?"": "checked=\"checked\""%> /><label for="ShowBodID"><%=GetText("UR100")%></label></div><div class="clear"></div>
										</li>
										<li>
											<div class="item"><%=GetText("PB103")%> <span class="grey12">(<%=GetText("C0043")%>)</span></div>
											<div class="op"><label><textarea id="Introduction" class="textarea allwid" rows="6" cols="" ><%=UserInfo.Introduction %></textarea></label></div><div class="clear"></div>
										</li>
										<li>
											<div class="item"><%=GetText("TP015")%></div>
											<div class="op">
												<div id="showtime">
												<table width="300" border="0" cellpadding="3" cellspacing="1">
													<script> var oWeek="";var oFTime="";var oTTime=""; var timezone="0";</script>													
													<%foreach( Model.WWW_User.Teach.TeachModel tm in TimeList) {%>
													<script>oWeek+='<%=tm.Week %>'+'$'; oFTime+='<%=tm.FromTime %>'+'$'; oTTime+='<%=tm.ToTime %>'+'$';timezone='<%=tm.Timezone %>';</script>
													<tr><td bgcolor="#f8f8f8"><%=BLF.WWW_User.Users.User.GetWeek(tm.Week)%></td><td><%=tm.FromTime %> - <%=tm.ToTime %></td></tr>
													<%} %>
												</table>
												</div>
												<p><a href="javascript:void(0);" onclick="cexTime('hcextime','showtime')" id="hcextime"><%=TimeList.Count > 0 ? GetText("C0053") : GetText("TP102")%></a><span id="SWeek" style="color:Red;display:none"><br /><%=GetText("TP315") %></span></p>
												<p class="grey12"><%=GetText("ST232")%></p>
											</div>
											<div class="clear"></div>
										</li>
									</ul>
								</div>
								<h3><%=GetText("ST053")%> (<%=GetText("C0043")%>)</h3>
								<div class="margin20D">
									<ul class="formlist">
										<li>
											<div class="item"><%=GetText("PB033")%></div>
											<div class="op"><select id="Education" class="select allwid">
													<option value=""><%=GetText("C0061")%>...</option>
											        <option value="1"<%=(UserInfo.Education=="1"?"selected=\"selected\"":"") %> ><%=GetText("ST096")%></option>
											        <option value="2"<%=(UserInfo.Education=="2"?"selected=\"selected\"":"") %> ><%=GetText("ST097")%></option>
											        <option value="3"<%=(UserInfo.Education=="3"?"selected=\"selected\"":"") %> ><%=GetText("ST098")%></option>
											        <option value="4"<%=(UserInfo.Education=="4"?"selected=\"selected\"":"") %> ><%=GetText("ST099")%></option>
											        <option value="5"<%=(UserInfo.Education=="5"?"selected=\"selected\"":"") %> ><%=GetText("ST100")%></option>
											        <option value="6"<%=(UserInfo.Education=="6"?"selected=\"selected\"":"") %> ><%=GetText("ST101")%></option>
												</select></div><div class="clear"></div>
										</li>
										<li>
											<div class="item"><%=GetText("ST062")%></div>
											<div class="op"><select id="OccupationCat" class="select allwid" onChange="OccupationCatChange()">
													<option value="" selected="selected"><%=GetText("C0061")%>...</option>
													<option value="1" <%=(UserInfo.OccupationCat=="1"?"selected=\"selected\"":"") %>><%=GetText("ST063")%></option>
													<option value="2"<%=(UserInfo.OccupationCat=="2"?"selected=\"selected\"":"") %>><%=GetText("ST064")%></option>
													<option value="3"<%=(UserInfo.OccupationCat=="3"?"selected=\"selected\"":"") %>><%=GetText("C0087")%></option>
												</select>
												<div class="margin15T">											
												<select id="Occupation1" style="display:none" class="select allwid">
													<option value="" selected="selected">[<%=GetText("ST071")%>]</option>
											        <option value="901"<%=(UserInfo.Occupation=="901"?"selected=\"selected\"":"") %> ><%=GetText("ST065")%></option>
											        <option value="902"<%=(UserInfo.Occupation=="902"?"selected=\"selected\"":"") %> ><%=GetText("ST066")%></option>
											        <option value="903"<%=(UserInfo.Occupation=="903"?"selected=\"selected\"":"") %> ><%=GetText("ST067")%></option>
											        <option value="904"<%=(UserInfo.Occupation=="904"?"selected=\"selected\"":"") %> ><%=GetText("ST068")%></option>
											        <option value="905"<%=(UserInfo.Occupation=="905"?"selected=\"selected\"":"") %> ><%=GetText("ST069")%></option>
											        <option value="906"<%=(UserInfo.Occupation=="906"?"selected=\"selected\"":"") %> ><%=GetText("ST070")%></option>
												</select></div>
												<div class="margin15T">											
												<select id="Occupation2" style="display:none" class="select allwid">
											        <option value=""  selected="selected">[<%=GetText("ST072")%>]</option>
											        <option value="1"<%=(UserInfo.Occupation=="1"?"selected=\"selected\"":"") %> ><%=GetText("ST073")%></option>
											        <option value="2"<%=(UserInfo.Occupation=="2"?"selected=\"selected\"":"") %> ><%=GetText("ST074")%></option>
											        <option value="3"<%=(UserInfo.Occupation=="3"?"selected=\"selected\"":"") %> ><%=GetText("ST075")%></option>
											        <option value="4"<%=(UserInfo.Occupation=="4"?"selected=\"selected\"":"") %> ><%=GetText("ST076")%></option>
											        <option value="5"<%=(UserInfo.Occupation=="5"?"selected=\"selected\"":"") %> ><%=GetText("ST077")%></option>
											        <option value="6"<%=(UserInfo.Occupation=="6"?"selected=\"selected\"":"") %> ><%=GetText("ST078")%></option>
											        <option value="7"<%=(UserInfo.Occupation=="7"?"selected=\"selected\"":"") %> ><%=GetText("ST079")%></option>
											        <option value="8"<%=(UserInfo.Occupation=="8"?"selected=\"selected\"":"") %> ><%=GetText("ST080")%></option>
											        <option value="9"<%=(UserInfo.Occupation=="9"?"selected=\"selected\"":"") %> ><%=GetText("ST081")%></option>
											        <option value="10"<%=(UserInfo.Occupation=="10"?"selected=\"selected\"":"") %> ><%=GetText("ST082")%></option>
											        <option value="11"<%=(UserInfo.Occupation=="11"?"selected=\"selected\"":"") %> ><%=GetText("ST083")%></option>
											        <option value="12"<%=(UserInfo.Occupation=="12"?"selected=\"selected\"":"") %> ><%=GetText("ST084")%></option>
											        <option value="13"<%=(UserInfo.Occupation=="13"?"selected=\"selected\"":"") %> ><%=GetText("ST085")%></option>
											        <option value="14"<%=(UserInfo.Occupation=="14"?"selected=\"selected\"":"") %> ><%=GetText("ST086")%></option>
											        <option value="15"<%=(UserInfo.Occupation=="15"?"selected=\"selected\"":"") %> ><%=GetText("ST087")%></option>
											        <option value="16"<%=(UserInfo.Occupation=="16"?"selected=\"selected\"":"") %> ><%=GetText("ST088")%></option>
											        <option value="17"<%=(UserInfo.Occupation=="17"?"selected=\"selected\"":"") %> ><%=GetText("ST089")%></option>
											        <option value="18"<%=(UserInfo.Occupation=="18"?"selected=\"selected\"":"") %> ><%=GetText("ST090")%></option>
											        <option value="19"<%=(UserInfo.Occupation=="19"?"selected=\"selected\"":"") %> ><%=GetText("ST091")%></option>
											        <option value="20"<%=(UserInfo.Occupation=="20"?"selected=\"selected\"":"") %> ><%=GetText("ST092")%></option>
											        <option value="21"<%=(UserInfo.Occupation=="21"?"selected=\"selected\"":"") %> ><%=GetText("ST093")%></option>
											        <option value="22"<%=(UserInfo.Occupation=="22"?"selected=\"selected\"":"") %> ><%=GetText("ST094")%></option>
												</select></div></div><div class="clear"></div>
										</li>
										<li>
											<div class="item"><%=GetText("PB035")%></div>
											<div class="op"><label><input id="PersonalWebpage" type="text" value="<%=UserInfo.PersonalWebpage %>"class="text allwid"/></label><span id="SPersonalWebpage" style="color: Red; display: none;" class="red10"><br /><%=GetText("ST197")%></span></div><div class="clear"></div>
										</li>
										<li>
											<div class="item"><%=GetText("PB032")%></div>
											<div class="op"><select id="MarriageID" class="select allwid">
													<option value=""><%=GetText("C0061")%>...</option>
											        <option value="0"<%=(UserInfo.Marriage=="0"?"selected=\"selected\"":"") %> ><%=GetText("ST059")%></option>
											        <option value="1"<%=(UserInfo.Marriage=="1"?"selected=\"selected\"":"") %> ><%=GetText("ST060")%></option>
											        <option value="2"<%=(UserInfo.Marriage=="2"?"selected=\"selected\"":"") %> ><%=GetText("ST061")%></option>
												</select></div><div class="clear"></div>
										</li>
										<li>
											<div class="item"><%=GetText("ST193")%></div>
											<div class="op"><table width="100%" border="0" cellspacing="0" cellpadding="0">
											  <tr>
												<td><input type="checkbox" id="Checkbox1"  <%=(UserInfo.Favorite&1)==1?"checked=\"checked\"":"" %> value="1" /><label for="Checkbox1"> <%=GetText("PB042")%></label></td>
												<td><input type="checkbox" id="Checkbox2" <%=(UserInfo.Favorite&2)==2?"checked=\"checked\"":"" %> value="2" /><label for="Checkbox2"> <%=GetText("PB043")%></label></td>
												<td><input type="checkbox" id="Checkbox3" <%=(UserInfo.Favorite&4)==4?"checked=\"checked\"":"" %> value="4" /><label for="Checkbox3"> <%=GetText("PB044")%></label></td>
												<td><input type="checkbox" id="Checkbox4" <%=(UserInfo.Favorite&8)==8?"checked=\"checked\"":"" %> value="8" /><label for="Checkbox4"> <%=GetText("PB045")%></label></td>
											  </tr>
											  <tr>
												<td><input type="checkbox" id="Checkbox5" <%=(UserInfo.Favorite&16)==16?"checked=\"checked\"":"" %> value="16" /><label for="Checkbox5"> <%=GetText("PB046")%></label></td>
												<td><input type="checkbox" id="Checkbox6" <%=(UserInfo.Favorite&32)==32?"checked=\"checked\"":"" %> value="32" /><label for="Checkbox6"> <%=GetText("PB047")%></label></td>
												<td><input type="checkbox" id="Checkbox7" <%=(UserInfo.Favorite&64)==64?"checked=\"checked\"":"" %> value="64" /><label for="Checkbox7"> <%=GetText("PB049")%></label></td>
												<td><input type="checkbox" id="Checkbox8" <%=(UserInfo.Favorite&128)==128?"checked=\"checked\"":"" %> value="128" /><label for="Checkbox8"> <%=GetText("PB048")%></label></td>
											  </tr>
											  <tr>
												<td><input type="checkbox" id="Checkbox9" <%=(UserInfo.Favorite&256)==256?"checked=\"checked\"":"" %> value="256" /><label for="Checkbox9"> <%=GetText("PB050")%></label></td>
												<td><input type="checkbox" id="Checkbox10" <%=(UserInfo.Favorite&512)==512?"checked=\"checked\"":"" %> value="512" /><label for="Checkbox10"> <%=GetText("PB051")%></label></td>
												<td><input type="checkbox" id="Checkbox11" <%=(UserInfo.Favorite&1024)==1024?"checked=\"checked\"":"" %> value="1024" /><label for="Checkbox11"> <%=GetText("C0087")%></label></td>
												<td></td>
											  </tr>
											</table></div><div class="clear"></div>
										</li>
										<li>
											<div class="item">&nbsp;</div>
											<div class="op"><input id="btnSave" type="button" class="button" value="<%=GetText("C0055")%>" onclick="SavePersonal()"/>&nbsp;&nbsp;<input id="Button1" type="button" class="buttong" value="<%=GetText("C0056")%>" onClick="javascript:top.location.reload();"/></div><div class="clear"></div>
										</li>
									</ul>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>
<script language="javascript">
<!--
var BODCID = document.getElementById('<%=BOD.ClientID%>');
var SNickname1="<%=GetText("UR043")%>";
var SNickname2="<%=GetText("UR042")%>";
var MessageTextS="<%=GetText("C1002")%>";
var MessageTextF="a case of crabs";
var MessageImageS = "/images/ico_info.gif";
var MessageImageF = "/images/ico_info.gif";
var MemberNo='<%=MemberNo %>'
var OccupationCat='<%=UserInfo.OccupationCat.Trim()%>';
var Occupation='<%=UserInfo.Occupation.Trim()%>';
var Education='<%=UserInfo.Education.Trim()%>';
var Favorite=<%=UserInfo.Favorite%>;
//--> 
</script>